/*
 * DRAG-N-DROP STACK IMAGES COMPONENT
 * Стили для интерактивного блока с перетаскиваемыми картинками
 * Используется в секции "Gray Block Section" на главной странице
 * НЕ путать с анимационным блоком .gray-box из ScrollAnimation.css
 */

/* Morph Shape */

.morph-shape {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

.morph-shape svg {
	position: absolute;
	margin: 0;
	pointer-events: none;
}

/* Stack */
.stack ul {
	position: relative;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.stack ul li {
	position: absolute;
	width: 100%;
	opacity: 0;
}

.stack__images {
	width: 700px;
	position: relative;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.stack__images li {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	overflow: hidden;
	border-radius: 56px !important;
	transition: all 0.3s cubic-bezier(.4,0,.2,1);
	z-index: 1;
	opacity: 0;
	pointer-events: none;
	background: linear-gradient(to bottom, #eeeeee 0%, #fff 100%);
}

.stack__images li img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	border-radius: 52px !important;
	pointer-events: none;
	border: 1px solid #eeeeee;
}

.stack__images li.active {
	z-index: 4;
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.stack__images li.next {
	z-index: 3;
	opacity: 1;
	pointer-events: none;
	transform: translateY(8px);
}

.stack__images li:nth-child(1) { top: 0px; pointer-events: auto; }
.stack__images li:nth-child(2) { top: 10px; pointer-events: none; }
.stack__images li:nth-child(3) { top: 16px; pointer-events: none; }
.stack__images li:nth-child(4) { top: 24px; pointer-events: none; }
.stack__images li:nth-child(5) { top: 32px; pointer-events: none; }
.stack__images li:nth-child(6) { top: 40px; pointer-events: none; }
.stack__images li:nth-child(7) { top: 48px; pointer-events: none; }
.stack__images li:nth-child(8) { top: 56px; pointer-events: none; }
.stack__images li:nth-child(9) { top: 64px; pointer-events: none; }
.stack__images li:nth-child(10) { top: 72px; pointer-events: none; }

.stack__images li:not(:first-child) img {
	box-shadow: 0 8px 32px rgba(0,0,0,0.10);
	/* border-radius: 16px; */
}

.stack__images li:hover {
	cursor: url(../img/cursor_vulcan.png), auto;
}

.stack__images li:active {
	cursor: -webkit-grabbing;
	cursor: grabbing;
}

.stack__images li.animate {
	-webkit-transition: all 0.3s ease-out;
	transition: all 0.3s ease-out;
}

.stack__images li.move-back {
	-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.470, 1); /* older webkit */
	-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.470, 1.515);
	transition-timing-function: cubic-bezier(0.175, 0.885, 0.470, 1.515);
}

.stack__next {
	border: none;
	background: none;
	display: block;
	padding: 0;
	overflow: hidden;
	width: 36px;
	height: 36px;
	margin: 10px auto 0;
	font-size: 30px;
	position: relative;
	cursor: pointer;
	color: #067ba7;
}

.demo-2 .stack__next {
	color: #189824;
}

.stack__next:hover {
	color: #fff;
}

.stack__next:focus {
	outline: none;
}

.stack__next span {
	position: absolute;
	top: 200%;
}

ul.stack__titles {
	height: 18vh;
	max-width: 560px;
	width: 95%;
}

.stack__titles blockquote {
	margin: 0;
	text-align: center;
	font-size: 1.4em;
}

.stack__titles blockquote footer {
	font-size: 50%;
	padding-bottom: 1em;
	font-family: 'Montserrat', Arial, sans-serif;
}

.stack__titles li {
	pointer-events: none;
	-webkit-transition: opacity 0.45s ease;
	transition: opacity 0.45s ease;
}

.stack__titles li.current {
	opacity: 1;
	pointer-events: auto;
}

/* Animations */
.morph-shape svg {
	fill: #01AEF0;
	-webkit-transition: fill 0.1s ease-out;
	transition: fill 0.1s ease-out;
}

.navigate-next .morph-shape svg {
	fill: #01a0dc;
	-webkit-transition-duration: 0.45s;
	transition-duration: 0.45s;
}

.container {
	-webkit-transition: -webkit-transform 0.1s cubic-bezier(0.6, 0, 0.5, 1);
	transition: transform 0.1s cubic-bezier(0.6, 0, 0.5, 1);
}

.demo-1.navigate-next .container {
	-webkit-transition-duration: 0.45s;
	transition-duration: 0.45s;
}

.demo-2.navigate-next .container {
	-webkit-transition-duration: 0.45s;
	transition-duration: 0.45s;
}

.demo-2 .morph-shape svg {
	fill: #189824;
}

.demo-2.navigate-next .morph-shape svg {
	fill: #189824;
}

/* ========== GRAY BLOCK SECTION ========== */
.gray-block-wrapper {
  background: none;
  padding: 80px 0 0 0;
  margin: 40px auto;
  width: 800px;
  height: 480px;
  box-sizing: border-box;
}

.gray-block-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.gray-block-title {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.gray-block-text {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #666;
}

/* ========== ADAPTIVE BREAKPOINTS ========== */

/* Web - 1441px and more */
@media (min-width: 1441px) {
  .gray-block-wrapper {
    width: 1004px;
    height: 480px;
    padding: 80px 0 0 0;
    margin: 40px auto !important;
    display: block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  .gray-block-content {
    max-width: 1004px;
    padding: 0 20px;
  }

  .gray-block-title {
    font-size: 32px;
  }

  .gray-block-text {
    font-size: 18px;
  }
}

/* Web - 1024px to 1440px */
@media (min-width: 1024px) and (max-width: 1440px) {
  .gray-block-wrapper {
    width: 800px;
    height: 480px;
    padding: 80px 0 0 0;
    margin: 40px auto;
  }

  .gray-block-content {
    max-width: 800px;
    padding: 0 20px;
  }

  .gray-block-title {
    font-size: 32px;
  }

  .gray-block-text {
    font-size: 18px;
  }
}

/* Mobile - 600px to 1023px */
@media (min-width: 600px) and (max-width: 1023px) {
  .gray-block-wrapper {
    width: 600px;
    height: 480px;
    padding: 60px 0 0 0;
    margin: 30px auto 0 auto;
  }

  .gray-block-content {
    max-width: 600px;
    padding: 0 16px;
  }

  .gray-block-title {
    font-size: 28px;
  }

  .gray-block-text {
    font-size: 16px;
  }
}

/* Mobile - 420px to 600px */
@media (min-width: 420px) and (max-width: 600px) {
  .gray-block-wrapper {
    width: 420px;
    height: 360px;
    padding: 40px 0 0 0;
    margin: 20px auto;
  }

  .gray-block-content {
    max-width: 420px;
    padding: 0 12px;
  }

  .gray-block-title {
    font-size: 24px;
  }

  .gray-block-text {
    font-size: 14px;
  }
}

/* Mobile - 320px to 420px */
@media (min-width: 320px) and (max-width: 420px) {
  .gray-block-wrapper {
    width: 304px;
    height: 272px;
    padding: 30px 0 0 0;
    margin: 15px auto;
  }

  .gray-block-content {
    max-width: 272px;
    padding: 0 8px;
  }

  .gray-block-title {
    font-size: 20px;
  }

  .gray-block-text {
    font-size: 12px;
  }
}

/* Extra small screens */
@media (max-width: 320px) {
  .gray-block-wrapper {
    width: calc(100% - 48px);
    max-width: 272px;
    height: auto;
    min-height: 480px;
    padding: 20px 0 0 0;
    margin: 10px auto;
  }

  .gray-block-content {
    max-width: 100%;
    padding: 0 8px;
  }

  .gray-block-title {
    font-size: 18px;
  }

  .gray-block-text {
    font-size: 11px;
  }
}

/* ========== STACK IMAGES ADAPTIVE ========== */
@media (max-width: 768px) {
  .stack__images {
    width: 90%;
  }

  .stack__images li {
    border-radius: 32px !important;
  }

  .stack__images li img {
    border-radius: 28px !important;
  }
}

@media (max-width: 480px) {
  .stack__images {
    width: 95%;
  }

  .stack__images li {
    border-radius: 24px !important;
  }

  .stack__images li img {
    border-radius: 20px !important;
  }
}

/* Увеличенные размеры для 320px-420px */
@media (min-width: 320px) and (max-width: 420px) {
  .stack__images {
    width: 105%;
  }

  .stack__images li {
    border-radius: 16px !important;
  }

  .stack__images li img {
    border-radius: 16px !important;
  }
}
/* 
.stack__images li.active img {
  border-radius: 52px !important;
} */

.stack__images li.active:hover {
  transform: translateY(-4px);
}

.miw-cta-center-2 {
	height: auto;
	margin-top: 48px;
}

/* ========== ADAPTIVE MARGINS FOR CTA BUTTON ========== */

/* Web - 1441px and more */
@media (min-width: 1441px) {
  .miw-cta-center-2 {
    margin-top: 120px;
  }
}

/* Web - 1024px to 1440px */
@media (min-width: 1024px) and (max-width: 1440px) {
  .miw-cta-center-2 {
    margin-top: 120px;
  }
}

/* Mobile - 600px to 1023px */
@media (min-width: 600px) and (max-width: 1023px) {
  .miw-cta-center-2 {
    margin-top: 16px;
  }
}

/* Mobile - 420px to 600px */
@media (min-width: 420px) and (max-width: 600px) {
  .miw-cta-center-2 {
    margin-top: 12px;
  }
}

/* Mobile - 320px to 420px */
@media (min-width: 320px) and (max-width: 420px) {
  .miw-cta-center-2 {
    margin-top: 8px;
  }
}

/* Extra small screens */
@media (max-width: 320px) {
  .miw-cta-center-2 {
    margin-top: 6px;
  }
} 